package com.kayt.cyberBar.company.business.dao;

import java.sql.SQLException;
import java.util.LinkedHashMap;
import java.util.List;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.company.business.entity.po.BCompanyBaseUnitMap;

public interface ICompanyBaseUnitMapDao {

	public Long addUnitMap(BCompanyBaseUnitMap unitMap) throws SQLException;

	public int deleteUnitMap(String unitMapId);

	public void updateUnitMap(BCompanyBaseUnitMap unitMap) throws SQLException;

	public BCompanyBaseUnitMap getUnitMapById(String unitMapId);

	public BCompanyBaseUnitMap getUnitMapByCode(String unitMapCode) throws SQLException;

	public PageData<BCompanyBaseUnitMap> getUnitMapList(String hql, Object[] params, LinkedHashMap<String, String> orderMap)
			throws SQLException;

	public List getUnitMapListByHql(int pageNum, int pageSize, String hql, Object[] params) throws SQLException;

	public boolean checkValidate(String itemCode) throws SQLException;

}
